from qiniu import Auth

access_key = '7WhtyWNtPC6pQ_PvcxqcT57_yZyF7B2BOPRkd4BE'
secret_key = 'K_TmgfQUwVWLM6d0GqWid0QyzVdaYZnnisEoY-CK'

def qntoken():
    q = Auth(access_key, secret_key)
    # 要上传的空间
    bucket_name = '2103aa'
    # 生成上传 Token
    token = q.upload_token(bucket_name)
    print(token)